/**
 * Comment数据模型
 */
const mongoose = require('mongoose')
const Schema = mongoose.Schema

const CommentType = {
    comment_date: String, // comment时间
    comment_user_id: String, // comment人的id
    comment_user_name: String, // comment人的name
    comment_user_email: String, // comment的邮箱
    comment_content: String, //内容
    comment_status: Number, // 是否可见，1可见0屏蔽
    comment_id: String,
    comment_news_id: String, // comment的内容id
    location: String, // 评论地区位置
}

const CommentModel = mongoose.model( 'comment', new Schema(CommentType))

module.exports = CommentModel
